import socket
from socket_wrapper import SocketWrapper

#0001|root|123456
#0002|root|iloveyou
#测试模块
def test():
    client_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
    client_socket.connect(('127.0.0.1',8090))
    client_socket = SocketWrapper(client_socket)
    while True:
        data = input("发送数据：")
        client_socket.send_data(data)
        print(client_socket.recv_data())


test()